<!DOCTYPE html>
<html>

<head>
    <title>小郑同学</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <link rel="stylesheet" href="./css/fenlei.css">
    <style>
        .hengtu {
            width: 100%;
            height: 316px;
            background-image: url(./images/fen1.jpg);
            background-size: 100%;
        }

        .beaty {
            width: 100%;
            height: 84px;
            padding-top: 20px;
            text-align: center;

        }

        .beaty>p:nth-child(1)>a {
            font-size: 26px;
            font-family: "宋体";
        }

        .beaty>p:nth-child(1)>a>span {
            color: rgb(178, 34, 34);
        }

        .beaty>p:nth-child(2)>a {
            font-family: "raleway";
            letter-spacing: 3px;
            font-size: 13px;
        }

        aside>.fen {
            width: 974px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
        }

        aside>.fen>li {
            cursor: pointer;
            line-height: 14px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 80px;
            border: 1px solid rgba(226, 226, 226, 1);
            font-family: " 微软雅黑";
            font-size: 14px;
            padding: 12px 10px;
            text-align: center;
            margin-left: 15px;
            list-style: none;
        }

        .sort {
            width: 1024px;
            height: 680px;
            margin: 0 auto;
            margin-top: 20px;
            margin-bottom: 50px;
            /* float: left; */

        }

        .sort>li {
            width: 255.5px;
            height: 329px;
            float: left;
            list-style: none;
        }

        .sort>li>a {
            display: block;
        }

        .sort>li>a>div {
            width: 252.5px;
            height: 252.5px;
            overflow: hidden;
        }

        .sort>li>a>div>img {
            width: 252.5px;
            height: 252.5px;
            transition: all ease-in-out .2s;
        }

        .sort>li>a>div>img:hover {
            transform: scale(1.2);
            transition: all .6s ease;

        }

        .sort>li>a>h3 {
            width: 100%;
            height: 19.2px;
            margin-top: 10px;
            text-align: center;
            font-size: 14px;
            color: #adadad;
            font-family: "微软雅黑";
            font-weight: normal;
        }

        .sort>li>p {
            font-size: 18px;
            text-align: center;
            color: #000000;
            font-family: "georgia";
            /* font-family: "Raleway"; */
        }
    </style>
</head>

<body>
    <header></header>
    <aside>
        <div class="hengtu"></div>
        <div class="beaty">
            <p><a href="#">觉<span>之</span>盆景</a></p>
            <p><a href="#">
                    Bonsai</a></p>
        </div>
        <ul class="fen">
            <li>老物</li>
            <li>新物</li>

        </ul>

        <ul class="sort">
            <li><a href="#">
                    <div>
                        <img src="./images/10.webp" alt="">
                    </div>
                    <h3>盆景001</h3>
                </a>
                <p>¥599.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/22.webp" alt="">
                    </div>
                    <h3>盆景002</h3>
                </a>
                <p>¥799.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/18.webp" alt="">
                    </div>
                    <h3>盆景003</h3>
                </a>
                <p>¥666.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/26.webp" alt="">
                    </div>
                    <h3>盆景004</h3>
                </a>
                <p>¥799.00</p>
            </li>

            <li><a href="#">
                    <div>
                        <img src="./images/5.webp" alt="">
                    </div>
                    <h3>盆景005</h3>
                </a>
                <p>¥1,999.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/7.webp" alt="">
                    </div>
                    <h3>盆景006</h3>
                </a>
                <p>¥999.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/6.webp" alt="">
                    </div>
                    <h3>盆景007</h3>
                </a>
                <p>¥8,888.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/8.webp" alt="">
                    </div>
                    <h3>盆景008</h3>
                </a>
                <p>¥8,999.00</p>
            </li>
        </ul>

    </aside>
    <footer></footer>
</body>

</html>
<script src="./js/jQuery.js"></script>
<script>
     $("header").load("header.html");
     $("footer").load("foot.html");



    let oli = $(".fen").eq(0).children();
    for (let i = 0; i < oli.length; i++) {
        oli[i].onclick = function () {
            for (var j = 0; j < oli.length; j++) {
                oli[j].style.border = "1px solid rgba(226,226,226,1)";
            }
            oli[i].style.border = "1px solid #000";
            $(".sort").eq(0).css({
                height: 350
            })
            if (i == 0) {
                $(".sort").eq(0).html(`<li><a href="#">
                    <div>
                        <img src="./images/10.webp" alt="">
                    </div>
                    <h3>盆景001</h3>
                </a>
                <p>¥599.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/22.webp" alt="">
                    </div>
                    <h3>盆景002</h3>
                </a>
                <p>¥799.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/18.webp" alt="">
                    </div>
                    <h3>盆景003</h3>
                </a>
                <p>¥666.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/26.webp" alt="">
                    </div>
                    <h3>盆景004</h3>
                </a>
                <p>¥799.00</p>
            </li>`);
            }
            if (i == 1) {
                $(".sort").eq(0).html(`<li><a href="#">
                    <div>
                        <img src="./images/5.webp" alt="">
                    </div>
                    <h3>盆景005</h3>
                </a>
                <p>¥1,999.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/7.webp" alt="">
                    </div>
                    <h3>盆景006</h3>
                </a>
                <p>¥999.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/6.webp" alt="">
                    </div>
                    <h3>盆景007</h3>
                </a>
                <p>¥8,888.00</p>
            </li>
            <li><a href="#">
                    <div>
                        <img src="./images/8.webp" alt="">
                    </div>
                    <h3>盆景008</h3>
                </a>
                <p>¥8,999.00</p>
            </li>`);
            }
        }
    }
</script>